<#macro fieldType tableInfo name>
    <#list tableInfo.getFields() as field>
        <#if field.getLowerCamelName() == name>
            <#nested field.getType().getSimpleName()>
            <#break>
        </#if>
    </#list>
</#macro>